function result = find_different_pairs(input_list)
    num_elements = length(input_list);
    % 初始化存储结果的数组
    result = [];
    % 遍历所有可能的序号对
    for i = 1:num_elements
        for j = i+1:num_elements
            if input_list(i) ~= input_list(j)
                result = [result; i, j];
            end
        end
    end
end